package org.example.myleet.p515;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.JsonUtils;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue("[1,3,9]".equals(JsonUtils.toJson(solution.largestValues(Parser.parse(new Integer[]{1,3,2,5,3,null,9})))));
        Assert.isTrue("[1,3]".equals(JsonUtils.toJson(solution.largestValues(Parser.parse(new Integer[]{1,2,3})))));
        Assert.isTrue("[1]".equals(JsonUtils.toJson(solution.largestValues(Parser.parse(new Integer[]{1})))));
    }
}
